package com.gxc.mall.user.service;

import com.gxc.mall.user.entity.UserEntity;

import javax.transaction.Transactional;

/**
 * @author GongXincheng
 * @since 2019-09-07 17:50
 */
public interface UserService {
    UserEntity findUserById(Integer id);

    @Transactional(rollbackOn = Exception.class)
    void saveUser(UserEntity userEntity);

    void saveUserManager(UserEntity userEntity);

    @Transactional(rollbackOn = Exception.class)
    void updateUserTest(Integer id, String username);
}
